package com.bing.bean.weixin;

/**
 * Created by kaibb on 2014/11/22.
 */

/*
{"access_token":"OezXcEiiBSKSxW0eoylIeGJGFgCnYYfwa_a7K3ZbAgzf77wd4WpQz-K2oklVuIZtgBo2h9Lg8pwufaJhKiynO4fexj3Ot6I-6C1z88y0D2j8P3YYmkq3wKMA6YVcCQ25w-FUZL44rC1oRdC6ELVCCg","expires_in":7200,"refresh_token":"OezXcEiiBSKSxW0eoylIeGJGFgCnYYfwa_a7K3ZbAgzf77wd4WpQz-K2oklVuIZt01EbZYttItYQdNMHgEaqhEswmBvaQyAY0WkThb2JMEhQMdireIlKpRgUG6-Z9NuBrJTHBQuEJFL_W0ntkllRhQ","openid":"o_FnSsqNY9LhpBvZ9wiGDhuwz-4Q","scope":"snsapi_userinfo"}*/
public class AccessToken {
    private String access_token;
    private long expires_in;
    private String refresh_token;
    private String openid;
    private String scope;
    private long createTime = 0;

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public long getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(long expires_in) {
        this.expires_in = expires_in;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("AccessToken{");
        sb.append("access_token='").append(access_token).append('\'');
        sb.append(", expires_in=").append(expires_in);
        sb.append(", refresh_token='").append(refresh_token).append('\'');
        sb.append(", openid='").append(openid).append('\'');
        sb.append(", scope='").append(scope).append('\'');
        sb.append(", createTime=").append(createTime);
        sb.append('}');
        return sb.toString();
    }
}
